﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/master/default.master" Inherits="gms.page.admin.aclmgr, Game Management Library" %>
<asp:Content ContentPlaceHolderID="page_title" runat="server">ACL Group Manager</asp:Content>
<asp:Content ContentPlaceHolderID="page_head" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_messages" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_content" runat="server">
	<h1 class="ui-widget-header">ACL Group Manager</h1>
	<p>&nbsp;</p>

	<a href="aclmgr_add.aspx" class="buttonize-small floatright">Add ACL Group</a>

	<table class="list-table">
		<tr>
			<th class="ui-widget-header">Name</th>
			<th class="ui-widget-header">Description</th>
			<th class="ui-widget-header">&nbsp;</th>
		</tr>
	<%
		for (int i = 0; i < list_of_groups.Count; i++) {
	%>
		<tr>
			<td><%= list_of_groups[i].name %></td>
			<td><%= list_of_groups[i].description %></td>
			<td>
				<% if (list_of_groups[i].acl_id != 1) { %>
				<a href="aclmgr_edit.aspx?id=<%= list_of_groups[i].acl_id %>" class="buttonize-small">Edit</a>
				<a href="aclmgr_del.aspx?id=<%= list_of_groups[i].acl_id %>" class="buttonize-small">Delete</a>
				<% } %>
			</td>
		</tr>
	<%
		}
	%>
	</table>
</asp:Content>